package org.example.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Food;
import org.example.mapper.IFoodMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FoodService extends ServiceImpl<IFoodMapper, Food> {

    // 根据 businessId 查询食品信息
    public List<Food> listFoodByBusinessId(Integer businessId) {
        return baseMapper.listFoodByBusinessId(businessId);
    }
} 